package com.crmxprovider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.crmxprovider.dao.UserDao;
import com.pojo.User;
import com.service.UserService;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.List;

@Component
@Service(interfaceClass = UserService.class)
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao ;

    @Override
    public List<User> getUserList() {
        return userDao.getAllUsers();
    }
}
